js:
// log(MY_URL);

function isNull(exp) {
	return !exp && typeof(exp)!="undefined" && exp!=0;
}

eval(JSON.parse(request("hiker://page/uses")).rule);

var res = {};
var d = [];
var json = JSON.parse(request(MY_URL));
list = json.data.list;

if(isNull(list)) {
	d.push({
		title: "““””<center><small>" + '<span style="color: #999999">～～～我是有底线的～～～</span></small></center>',
		url: 'toast://别点了，我真的有底线！',
		col_type: 'text_center_1'
	});
}
else {
	for(var i = 0; i < list.length; i++) {
		data = list[i]; 
		
		if(data.type == 'blog') {
			pic_url = '/';
			col_type = 'text_1';
			desc = '<small>👀&emsp;' + data.viewCount
					+'&emsp;</small><small>✉️' +data.commentCount 
					+'&emsp;</small><small>👍' +data.diggCount 
					+ '““””</small><small><font color="red">&emsp;'
					+ getDateDiff(new Date(Number(data.postTime)).Format("yyyy-MM-dd hh:mm:ss")) 
					+ '</font></small>\n<small>'+ data.description + '</small>';
			url = data.url;
		}
		else if(data.type == 1) {
			pic_url = '/';
			col_type = 'text_1'
			if(data.top == true) {
				tmp_s = '置顶👆';
			}
			else {
				tmp_s = '';
			}
			desc = '<small>👀&emsp;' + data.viewCount
					+'&emsp;</small><small>✉️' +data.commentCount 
					+'&emsp;</small><small>👍' +data.diggCount 
					+ '““””</small><small><font color="red">&emsp;'
					+ data.postTime + '&emsp;&emsp;&emsp;&emsp;'
					+ tmp_s
					+ '</font></small>\n<small>'+ data.description + '</small>';
			url = data.url;
		}
		else if(data.type == 'download') {
			pic_url = '/';
			col_type = 'text_1';
			desc = '<small>👀&emsp;文件类型：' + data.fileType
					+ '““””</small><small><font color="red">&emsp;'
					+ getDateDiff(new Date(Number(data.createTime)).Format("yyyy-MM-dd hh:mm:ss")) 
					+ '</font></small>\n<small>'+ data.description + '</small>';
			url = data.url;
		}
		else if(data.type == 'ask') {
			pic_url = '/';
			col_type = 'text_1';
			desc = '<small>时间：'
					+ '““””</small><small><font color="red">'
					+ getDateDiff(new Date(Number(data.createTime)).Format("yyyy-MM-dd hh:mm:ss")) 
					+ '</font></small>';
			url = data.url;
		}
		else if(data.type == 'video') {
			pic_url = data.cover;
			col_type = 'movie_1';
			desc = '<small>时间：'
				+ '““””</small><small><font color="red">'
				+ getDateDiff(new Date(Number(data.createTime)).Format("yyyy-MM-dd hh:mm:ss")) 
				+ '</font></small>\n<small>'+ data.description + '</small>';
			url = 'web://' + data.url;
		}
		else {
			continue;
		}
		
		d.push({
			title: data.title,
			pic_url: pic_url,
			col_type: col_type,
			desc: desc,
			url: url
		});
	}
}

res.data = d;
setHomeResult(res);
